Page({
  data: {
    url: ''
  },
  onLoad(option) {
    console.log(option)
      if (option.url) {
        this.setData({
          url: decodeURIComponent(option.url)
        })
      }
    if (option.title) {
      wx.setNavigationBarTitle({
        title: decodeURIComponent(option.title)
      })
    }
  },
  webviewLoadSuccess(e) {
    console.log('webview加载成功', e)
  },
  webviewLoadError(e) {
    console.log('webview加载失败', e)
  }
})